PHP's parse_url() is avoided since v2.2.0.
Creating an empty url by new http\Url(NULL, NULL, 0)
will not result in http://localhost/
anymore but in an empty URL instead.
The default value of the $flags parameter of http\Url::__construct() was changed from http\Url::FROM_ENV to 0 and http\Env\Url was introduced instead.